﻿using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;

namespace net8.Validation
{
    /// <summary>
    /// 禁用模型验证
    /// </summary>
    public class NullObjectModelValidator : IObjectModelValidator
    {
        //builder.Services.AddSingleton<IObjectModelValidator, NullObjectModelValidator>();
        public void Validate(ActionContext actionContext, ValidationStateDictionary? validationState, string prefix, object? model)
        {
            
        }
    }
}
